/*
 * Canvas.h
 *
 *  Created on: 2010-11-3
 *      Author: Administrator
 */

#ifndef CANVAS_H_
#define CANVAS_H_
#include <W32STD.H>
#include <BITSTD.H>
#include"BaseObject.h"
class Canvas : public CBaseObject
	{
public:
	Canvas(CEngine* pEnine);
	virtual ~Canvas();
	
public:
	
	void UseFont(CFont* pFont);
	void Flip(CWindowGc& aGc);
	void ShowPng(TPoint aPoint, TInt aId);
	void ShowText(TPoint aPoint, TInt aId);
	void ShowBitmap(TPoint aPoint, CFbsBitmap* imap, CFbsBitmap* imask=NULL);
	void DarwText(TPoint aPoint, TDesC& aDes);
	
	CFbsBitGc*	GetGc(){return iBufferGc;}
	
private:
	CFbsBitmap*	iScreenBuffer;
	CFbsBitmapDevice*	iBufferDevice;
	CFbsBitGc*	iBufferGc;
	
	TInt	iScreenWidth,iScreenHeight;
	
	
	
	};

#endif /* CANVAS_H_ */
